﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.AuthorCenter.ApiMetadatas.Repositories
{
    public interface IApiMetadataRepository : IRepository<ApiMetadata, Guid>
    {
        Task<List<ApiMetadata>> GetListAsync(string apiScope , string path , CancellationToken cancellationToken = default);

        Task<ApiMetadata> FindAsync(string path, string method, string apiScope , CancellationToken cancellationToken = default);

        Task<List<ApiMetadata>> GetListAsync(List<Guid> ids, CancellationToken cancellationToken = default);
    }
}
